package com.suoyue.store.entity;

import java.io.Serializable;

public class CartObject implements Serializable {
        private Integer cid;
        private Integer uid;
        private Integer pid;
        private String name;
        private String image;
        private String description;
        private Double price;
        private Integer num;

        public CartObject(Integer cid, Integer uid, Integer pid, String name, String image, String description, Double price, Integer num) {
                this.cid = cid;
                this.uid = uid;
                this.pid = pid;
                this.name = name;
                this.image = image;
                this.description = description;
                this.price = price;
                this.num = num;
        }

        @Override
        public String toString() {
                return "CartObject{" +
                        "cid=" + cid +
                        ", uid=" + uid +
                        ", pid=" + pid +
                        ", name='" + name + '\'' +
                        ", image='" + image + '\'' +
                        ", description='" + description + '\'' +
                        ", price=" + price +
                        ", num=" + num +
                        '}';
        }

        public Integer getCid() {
                return cid;
        }

        public void setCid(Integer cid) {
                this.cid = cid;
        }

        public Integer getUid() {
                return uid;
        }

        public void setUid(Integer uid) {
                this.uid = uid;
        }

        public Integer getPid() {
                return pid;
        }

        public void setPid(Integer pid) {
                this.pid = pid;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getImage() {
                return image;
        }

        public void setImage(String image) {
                this.image = image;
        }

        public String getDescription() {
                return description;
        }

        public void setDescription(String description) {
                this.description = description;
        }

        public Double getPrice() {
                return price;
        }

        public void setPrice(Double price) {
                this.price = price;
        }

        public Integer getNum() {
                return num;
        }

        public void setNum(Integer num) {
                this.num = num;
        }
}
